package com.next

//各类证书认证表
class Certificate
{

    String name
    //认证和证书名称
    String certificateAuthority
    //认证机构
    String certificateDepartment
    //认证部门
    CertificateType type
    //认证类型
    Date startTime
    //认证日期
    Date endTime
    //有效日期
    String memo
    //备注
    String serialNumber
    //编号

    Account account
    //企业

    Date registerDate
    //登记日期
    String registerAccount
    //登记机构
    String registerUser
    //登记人

    Date createdDate = new Date()
    User createdBy
    Date modifiedDate = new Date()
    User modifyBy

    static constraints = {
        name maxSize: 32
        serialNumber nullable: true, blank: true
        certificateAuthority blank: true, nullable: true, maxSize: 32
        certificateDepartment blank: true, nullable: true, maxSize: 32
        startTime nullable: true, blank: true
        endTime nullable: true, blank: true
        memo nullable: true, blank: true, maxSize: 64
        serialNumber maxSize: 32
        createdDate nullable: true, blank: true
        createdBy nullable: true, blank: true
        modifiedDate nullable: true, blank: true
        modifyBy nullable: true, blank: true
        account nullable: true, blank: true
        registerDate nullable: true, blank: true
        registerAccount nullable: true, blank: true, maxSize: 64
        registerUser nullable: true, blank: true, maxSize: 32
    }

}
